﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using System.Xml.Serialization;
using Microsoft.Xna.Framework.Graphics;
using Urbania.GUI.Elements;
using Urbania.Utilities;

namespace Urbania.GUI
{
    class HUDElement
    {
        public SpriteBatch sprite { get; set; }
        public Vector2 pos { get; set; }

        public HUDElement(SpriteBatch spriteBatch, Vector2 position) 
        {
            pos = position;
            sprite = spriteBatch;
        }

        public void drawValue(String value)
        {
            sprite.DrawString(Loader.GetFont("Font\\HUDFont"), value, pos, Color.DarkMagenta);
        }

        public void drawPicture(Texture2D image)
        {
            sprite.Draw(image, pos, Color.DarkMagenta);
        }

        public void drawBG(Texture2D image)
        {
            sprite.Draw(image, new Rectangle((int)pos.X, (int)pos.Y, 2000, 35), Color.Black);
        }
    }
}
